Aurimas Černius [Sun, 3 Sep 2017 20:36:03 +0000 (23:36 +0300)]
Updated Lithuanian translation
Rūdolfs Mazurs [Sun, 3 Sep 2017 16:26:58 +0000 (19:26 +0300)]
Update Latvian translation
Jordi Mas [Sun, 3 Sep 2017 16:06:43 +0000 (18:06 +0200)]
Update Catalan translation
Matthias Clasen [Sun, 3 Sep 2017 15:57:21 +0000 (11:57 -0400)]
Add a workaround for vulkan crashes
I see 'out of memory' errors and crashes inside libvulkan when
creating nodes that have empty bounds and end up in the fallback
paths, like a shadow around an empty text node. Prevent this
by not creating text nodes in that case.
Matthias Clasen [Sun, 3 Sep 2017 15:34:41 +0000 (11:34 -0400)]
vulkan: Add more debug spew
Matthias Clasen [Sun, 3 Sep 2017 15:29:29 +0000 (11:29 -0400)]
Record node names for debug output
This is useful for GSK_NOTE output as well.
Matthias Clasen [Sun, 3 Sep 2017 14:32:55 +0000 (10:32 -0400)]
gsk: Improve debug output
If we don't have node names, we can still print class names.
Matthias Clasen [Sun, 3 Sep 2017 14:30:32 +0000 (10:30 -0400)]
Only record node names when we should
This is the same thing we do for render nodes elsewhere.
Daniel Boles [Sun, 3 Sep 2017 12:53:48 +0000 (13:53 +0100)]
Adwaita: Fix ineffective theming of switch slider
in a specific case, which was applying .slider as a class on the parent
switch, instead of correctly selecting on its child node named slider.
This makes the border on the outside of a switch in a selected listbox
row look better in the light variant. Since the code was never removed,
it was clearly meant to work, and making it work is a clear improvement.
Daniel Boles [Sun, 3 Sep 2017 12:32:14 +0000 (13:32 +0100)]
HighContrast: Fix outdated name for headerbar box
Daniel Boles [Sun, 3 Sep 2017 11:07:35 +0000 (12:07 +0100)]
docs: css-overview: Don’t recommend broken syntax
Using this produced warnings about the Pango syntax of <Family> <size>
being deprecated, and the size being invalid due to no unit specified.
Also, that multi-word font family presumably wouldn’t work as expected.
Daniel Boles [Sun, 3 Sep 2017 10:04:48 +0000 (11:04 +0100)]
Toolbar: Clarify set_show_arrow() a bit more
Daniel Boles [Sun, 3 Sep 2017 09:41:56 +0000 (10:41 +0100)]
Toolbar: Clarify how the arrow overflow menu works
The fact it affects the preferred size, and only works with ToolItems
that return a menu proxy item, was unclear unless deduced from other
sources, and this led to users thinking it was broken, for example:
https://stackoverflow.com/q/
44644642/
2757035
https://bugzilla.gnome.org/show_bug.cgi?id=787158
https://bugzilla.gnome.org/show_bug.cgi?id=787195
Daniel Boles [Sun, 3 Sep 2017 09:41:24 +0000 (10:41 +0100)]
ToolItem: Add see-also from proxy setter to signal
Daniel Boles [Sun, 3 Sep 2017 09:39:58 +0000 (10:39 +0100)]
ToolItem: Annotate menu proxy item as nullable
It can be NULL. ::create-menu-proxy gave an example of when a NULL proxy
menu item could be useful, but the accessors did not annotate it as such.
Timm Bäder [Sat, 2 Sep 2017 12:25:29 +0000 (14:25 +0200)]
container: Drop priv pointer
Timm Bäder [Fri, 1 Sep 2017 17:35:30 +0000 (19:35 +0200)]
testcenterbox: Properly quit on window close
Rafael Fontenelle [Sat, 2 Sep 2017 22:48:48 +0000 (22:48 +0000)]
Update Brazilian Portuguese translation
Daniel Boles [Sat, 2 Sep 2017 15:13:03 +0000 (16:13 +0100)]
Revert "sk.po: Consistently translate “Insert”"
This reverts commit
98e301845529386387308b00ff368291fccd292e.
As an English-speaker, I know nothing about complex grammar, and it’s
been brought to my attention that some languages might differ in the
translation of the same command depending on where it appears.
So, I’d better assume everyone else knows better than me. Apologies!
Matthias Clasen [Sat, 2 Sep 2017 15:06:20 +0000 (11:06 -0400)]
gsk: add a has_color boolean to text nodes
Currently, this information is not used since cairo_show_glyphs
deals with color glyphs for us. But when we get to uploading
glyphs to a texture atlas, we will need it to do the right thing.
We don't look at individual glyphs here, but just whether the
font has the has-color flag set. In practice, all glyphs in
such a font will be color glyphs, and we can avoid loading all
the glyphs this way.
Daniel Boles [Sat, 2 Sep 2017 15:00:08 +0000 (16:00 +0100)]
Adwaita: Fix colour mixing of emoji section button
when hovered, by using %, since SASS does not handle decimal mixes.
Daniel Boles [Sat, 2 Sep 2017 10:56:51 +0000 (11:56 +0100)]
sk.po: Consistently translate “Insert”
The two occurrences disagreed on the translation, and my amateur
investigation indicates this one is correct.
Daniel Boles [Sat, 2 Sep 2017 10:53:16 +0000 (11:53 +0100)]
gl.po: Consistently translate/capitalise “Emoji”
GTK+ 3 and 4 disagreed on capitalisation and the translation of “Emoji”.
Use sentence case as elsewhere & the most common translation: emoticono.
Matthias Clasen [Sat, 2 Sep 2017 12:45:51 +0000 (08:45 -0400)]
emoji chooser: No emoji in the search entry
Recursion is fun, but better avoided in the ui.
https://bugzilla.gnome.org/show_bug.cgi?id=786960
Matthias Clasen [Sat, 2 Sep 2017 12:42:52 +0000 (08:42 -0400)]
entry: Consider input hints for Emoji support
Don't show "insert emoji" in the context menu if input
hints indicate that Emoji input is not useful.
Matthias Clasen [Sat, 2 Sep 2017 12:42:18 +0000 (08:42 -0400)]
Add input hints for Emoji input
Allow hinting input methods about whether Emoji support is
useful or not.
Emmanuele Bassi [Sat, 2 Sep 2017 11:00:05 +0000 (12:00 +0100)]
build: Add option to enable/disable GIR generation
And drop the unnecessary is_cross_build() check: it's entirely possible
to generate introspection data when cross-compiling.
Fran Dieguez [Sat, 2 Sep 2017 10:09:49 +0000 (10:09 +0000)]
Update Galician translation
Dušan Kazik [Sat, 2 Sep 2017 08:00:42 +0000 (08:00 +0000)]
Update Slovak translation
Dušan Kazik [Sat, 2 Sep 2017 07:55:10 +0000 (07:55 +0000)]
Update Slovak translation
Andika Triwidada [Sat, 2 Sep 2017 00:59:58 +0000 (00:59 +0000)]
Update Indonesian translation
Matthias Clasen [Fri, 1 Sep 2017 23:51:17 +0000 (19:51 -0400)]
emoji chooser: Avoid a crash
The emoji chooser gets disposed already, because it is attached
to the toplevel as a popover. Doing it again when the object data
is cleared is leading to a crash.
https://bugzilla.gnome.org/show_bug.cgi?id=787103
Piotr Drąg [Fri, 1 Sep 2017 23:53:37 +0000 (01:53 +0200)]
Update Polish translation
Mohammed Sadiq [Wed, 30 Aug 2017 17:55:59 +0000 (23:25 +0530)]
emoji-chooser: fix subsequent scroll
Event handlers on scroll window should only be run once the widget
is shown.
https://bugzilla.gnome.org/show_bug.cgi?id=786964
gogo [Fri, 1 Sep 2017 22:04:54 +0000 (22:04 +0000)]
Update Croatian translation
gogo [Fri, 1 Sep 2017 21:52:46 +0000 (21:52 +0000)]
Update Croatian translation
Daniel Boles [Wed, 30 Aug 2017 11:48:23 +0000 (12:48 +0100)]
Entry: Set tooltip text on icon for emoji chooser
https://bugzilla.gnome.org/show_bug.cgi?id=786885
Matthias Clasen [Fri, 1 Sep 2017 19:33:27 +0000 (15:33 -0400)]
Use gsk for text shadows
We don't need to render these manually using cairo anymore.
Matthias Clasen [Fri, 1 Sep 2017 19:32:48 +0000 (15:32 -0400)]
label: Don't leak clip regions
This was introduced in the conversion to gsk.
Daniel Boles [Fri, 1 Sep 2017 19:17:11 +0000 (20:17 +0100)]
ComboBox: Dodge possible surplus disconnects
in case anyone connected any other signal on the model to this ComboBox.
Matthias Clasen [Fri, 1 Sep 2017 18:42:29 +0000 (14:42 -0400)]
entry: Convert to gsk
This introduces a new css node for block cursor styling.
Matthias Clasen [Fri, 1 Sep 2017 18:12:20 +0000 (14:12 -0400)]
Fix text colors
This was lost in some reshuffling of the gskpango branch.
Matthias Clasen [Fri, 1 Sep 2017 17:42:43 +0000 (13:42 -0400)]
Fix the build
Matthias Clasen [Fri, 1 Sep 2017 16:42:21 +0000 (12:42 -0400)]
Use a text render node in GskPangoRenderer
This pushes the rendering closer to the place where we can
insert a texture atlas for glyph caching.
Matthias Clasen [Tue, 29 Aug 2017 21:28:10 +0000 (17:28 -0400)]
Add a render node for text
This is just a wrapper around a PangoGlyphString + PangoFont.
Basically, the arguments that are passed to pango_renderer_draw_glyphs.
Matthias Clasen [Wed, 30 Aug 2017 15:14:48 +0000 (11:14 -0400)]
Use GskPangoRenderer to render text
This just replaces the wrapper call.
Matthias Clasen [Wed, 30 Aug 2017 15:12:50 +0000 (11:12 -0400)]
Add a Pango renderer
Copy the PangoCairoRenderer into GTK+, rename it to GskPangoRenderer,
and strip it down far enough to build without private pango apis.
This means we currently don't support hexboxes or shapes.
Currently, this lives in gtk, but it might be nicer to put it
in gsk eventually.
Timm Bäder [Fri, 1 Sep 2017 12:09:44 +0000 (14:09 +0200)]
centerbox: Unparent widgets in dispose
Timm Bäder [Thu, 31 Aug 2017 11:14:33 +0000 (13:14 +0200)]
menuitem: Fix small memory leak in get_label
g_object_get returs a newly allocated string so we can't use it here.
Matthias Clasen [Fri, 1 Sep 2017 16:56:22 +0000 (12:56 -0400)]
Remove an unused variable
Matthias Clasen [Fri, 1 Sep 2017 16:26:43 +0000 (12:26 -0400)]
label: Port active link drawing to gsk
We don't need to fall back to cairo fro this anymore.
Piotr Drąg [Fri, 1 Sep 2017 16:22:44 +0000 (18:22 +0200)]
Update POTFILES.in and POTFILES.skip
Matthias Clasen [Fri, 1 Sep 2017 16:03:06 +0000 (12:03 -0400)]
inspector: Add some tooltips
These buttons are not 100% obvious.
Matthias Clasen [Fri, 1 Sep 2017 15:59:41 +0000 (11:59 -0400)]
inspector: Remove debug nodes setting from visual tab
No need to have the same setting in two places.
Matthias Clasen [Fri, 1 Sep 2017 15:55:23 +0000 (11:55 -0400)]
inspector: Move debug nodes option
Put this option on the recorder page where it makes more sense.
Matthias Clasen [Fri, 1 Sep 2017 15:07:21 +0000 (11:07 -0400)]
label: Port selection drawing to gsk
We don't need to fall back to cairo for this anymore.
Daniel Boles [Fri, 1 Sep 2017 15:03:36 +0000 (16:03 +0100)]
ScrolledWindow: Dodge possible surplus disconnects
In case the outgoing Adjustment for whatever reason has other handlers
referring to this SW, be sure to avoid disconnecting any but our own.
Daniel Boles [Fri, 1 Sep 2017 10:52:12 +0000 (11:52 +0100)]
ComboBox: Remove pointless signal ID member fields
We don’t need to store these for disconnection, as we can just use
g_signal_handlers_disconnect_by_data().
Dušan Kazik [Fri, 1 Sep 2017 14:21:15 +0000 (14:21 +0000)]
Update Slovak translation
Daniel Boles [Thu, 31 Aug 2017 22:18:46 +0000 (23:18 +0100)]
ScrolledWindow: Fix non-disconnection of handlers
• Use disconnect_by_data() to catch both _adjustment_changed() and now
_adjustment_value_changed(), as the latter had been missed until now.
• Also disconnect from indicator_value_changed(), which was not done in
destroy() due to indicator_reset() and remove_indicator() disagreeing.
https://bugzilla.gnome.org/show_bug.cgi?id=775074
Daniel Boles [Thu, 31 Aug 2017 19:19:58 +0000 (20:19 +0100)]
Window: Do not connect to NULL screen in init()
Do not connect to get_settings_for_screen() if we have no screen…
Use g_signal_connect(), not connect_object(), to match how set_screen()
makes this same connection, and how finalize() already disconnects it.
https://bugzilla.gnome.org/show_bug.cgi?id=705640
Daniel Boles [Thu, 31 Aug 2017 18:58:15 +0000 (19:58 +0100)]
FileChooserWidget: Remove an unused #include
Daniel Boles [Tue, 29 Aug 2017 22:10:14 +0000 (23:10 +0100)]
gskenums: Fix typo/grammar in GskRenderNodeType doc
Matthias Clasen [Thu, 31 Aug 2017 03:22:03 +0000 (23:22 -0400)]
Avoid computing the same thing twice
Trivial cleanup.
Daniel Boles [Wed, 30 Aug 2017 20:14:56 +0000 (21:14 +0100)]
Entry: Rename int helper to gtk_entry_clear_icon()
It was called gtk_entry_clear(), which was unnecessarily vague.
Gábor Kelemen [Wed, 30 Aug 2017 18:18:25 +0000 (18:18 +0000)]
Update Hungarian translation
Gábor Kelemen [Wed, 30 Aug 2017 18:18:10 +0000 (18:18 +0000)]
Update Hungarian translation
Daniel Boles [Sat, 5 Aug 2017 22:48:29 +0000 (23:48 +0100)]
Entry: Fix Shift-click → extend/truncate selection
Since the move from button-press to gesture events, Shift-clicking did
not work to start a selection (from none) or truncate an existing one.
This was due to the code being copy-pasted around and some logic being
broken in the process. This makes both of those work as they should, by
shuffling it again so the end result is the same as before. Highlights:
(1) ::button-press if extending due to a single press would call
set_positions(tmp_pos, tmp_pos), which is what made the Shift+click to
create a selection work. That was lost. Add it back to make that work.
(2) ::button-press in the “Truncate current selection” branch would not
execute all the stuff around “extend_to_left”, as that was the else
case. So, set extend_selection = FALSE so we skip over that later on.
(3) BUT! This Truncate case never fired because it was in the else
branch of if (in_selection())! Of course, it must be in the true branch.
(4) The IM context was not reset if the Shift-click occurred within an
existing selection, only if it did not. In ::button-press this was the
first thing done if extending a selection, regardless. Make it so again.
https://bugzilla.gnome.org/show_bug.cgi?id=780750
Daniel Boles [Wed, 30 Aug 2017 13:22:54 +0000 (14:22 +0100)]
gl.po: Remove mnemonic underlines from tooltips
It looks like these were copy-paste errors from the corresponding labels
for buttons, which should have mnemonics. Of course, tooltips cannot.
Matthias Clasen [Wed, 30 Aug 2017 12:36:56 +0000 (08:36 -0400)]
Avoid empty space in the emoji chooser
We need to hide the empty flow boxes as well, to avoid
spacing between them.
https://bugzilla.gnome.org/show_bug.cgi?id=786966
Fabio Tomat [Wed, 30 Aug 2017 08:31:59 +0000 (08:31 +0000)]
Update Friulian translation
Nelson Benítez León [Wed, 2 Aug 2017 14:03:28 +0000 (19:03 +0500)]
textview: fix bug on DnD displaced limits of selection
The fix of commit
f2fd655754407103f8fb9b2c3e7586fb595ab917
should be confined to DnD coords only, because otherwise
it causes the start and end of the selection to be displaced.
https://bugzilla.gnome.org/show_bug.cgi?id=785736
Debarshi Ray [Mon, 28 Aug 2017 16:58:50 +0000 (18:58 +0200)]
GtkBuilder: Prefer "type-func" over "class" when looking for the GType
https://bugzilla.gnome.org/show_bug.cgi?id=786932
Милош Поповић [Tue, 29 Aug 2017 11:36:58 +0000 (11:36 +0000)]
Update Serbian Latin translation
Марко Костић [Tue, 29 Aug 2017 11:33:09 +0000 (11:33 +0000)]
Update Serbian translation
Timm Bäder [Tue, 29 Aug 2017 09:48:13 +0000 (11:48 +0200)]
GskRenderNode: Fix fallback border drawing
Rūdolfs Mazurs [Tue, 29 Aug 2017 09:19:09 +0000 (12:19 +0300)]
Update Latvian translation
Emin Tufan Çetin [Tue, 29 Aug 2017 05:39:03 +0000 (05:39 +0000)]
Update Turkish translation
Daniel Boles [Sat, 12 Aug 2017 15:13:11 +0000 (16:13 +0100)]
LevelBar: Really fix underallocation of blocks
Themes should not enforce min sizes on blocks in continuous mode; in
this case, the filled block should be as large as it needs to be to
reflect the current value, and no larger or smaller than that. So, the
fact that the minimal size was selected on just levelbar block is wrong:
we should also require the levelbar.discrete class to apply min sizes.
The widget should enforce whatever correct minimum size results from the
above fix, by reapplying commit
78b4885fe8850e132d8bb06df8ab90ac6c2033e0
Except: we should not allocate/draw the filled block if the value is 0,
as in this case, the LevelBar should be empty, not have a min-size fill.
This partially reverts commit
96062ffeae5245fa165a96a2af86d5645f5e8569,
as it makes sense to set min sizes for discrete blocks, so keep that in.
https://bugzilla.gnome.org/show_bug.cgi?id=783649
Javier Jardón [Fri, 4 Aug 2017 14:12:12 +0000 (15:12 +0100)]
gtk/gtkshow: Remove deprected gtk_show_uri()
Javier Jardón [Fri, 4 Aug 2017 14:11:36 +0000 (15:11 +0100)]
Use gtk_show_uri_on_window() instead gtk_show_uri()
Daniel Boles [Mon, 28 Aug 2017 19:35:47 +0000 (20:35 +0100)]
Entry: Handle :show-emoji-icon becoming false
Disconnect the now-unwanted signal handler, and hide the icon.
https://bugzilla.gnome.org/show_bug.cgi?id=786940
Daniel Boles [Mon, 28 Aug 2017 19:34:49 +0000 (20:34 +0100)]
Entry: Drop redundant typecasts
https://bugzilla.gnome.org/show_bug.cgi?id=786940
Daniel Boles [Mon, 28 Aug 2017 19:26:48 +0000 (20:26 +0100)]
Entry: Only open emoji picker on 2ndary icon click
We hijack the secondary icon for the emoji picker, but the handler for
::icon-press did not check the pressed icon and opened it for either.
https://bugzilla.gnome.org/show_bug.cgi?id=786938
Ask Hjorth Larsen [Mon, 28 Aug 2017 17:27:30 +0000 (19:27 +0200)]
Updated Danish translation
Ask Hjorth Larsen [Mon, 28 Aug 2017 17:25:52 +0000 (19:25 +0200)]
Updated Danish translation
Matej Urbančič [Mon, 28 Aug 2017 17:24:58 +0000 (19:24 +0200)]
Updated Slovenian translation
Matej Urbančič [Mon, 28 Aug 2017 17:19:53 +0000 (19:19 +0200)]
Updated Slovenian translation
Timm Bäder [Mon, 28 Aug 2017 15:48:25 +0000 (17:48 +0200)]
gskrendernode: Fix inset shadow drawing
Timm Bäder [Mon, 28 Aug 2017 15:38:57 +0000 (17:38 +0200)]
gskrendernode: Constify some parameters
Timm Bäder [Mon, 28 Aug 2017 14:58:48 +0000 (16:58 +0200)]
Revert "headerbar: Avoid allocating 0 visible children"
This reverts commit
8c0e5adaab3f38de31d44dd50bcc8179b17c8b4a.
This is actually needed since GtkHeaderBar will allocate and snapshot
widget that coun_visible_children does not consider.
Fabio Tomat [Mon, 28 Aug 2017 14:40:24 +0000 (14:40 +0000)]
Update Friulian translation
Timm Bäder [Mon, 28 Aug 2017 09:17:19 +0000 (11:17 +0200)]
range: Fix trough state update
Timm Bäder [Mon, 28 Aug 2017 09:15:58 +0000 (11:15 +0200)]
popover: Initialize some locals
gtk_popover_get_pointing_to does not fill the given rect in every case.
Timm Bäder [Mon, 28 Aug 2017 09:07:35 +0000 (11:07 +0200)]
headerbar: Avoid allocating 0 visible children
Ths avoids doing a bunch of work as well as passing 0 to g_alloca which
is undefined.
Changwoo Ryu [Sun, 27 Aug 2017 21:47:55 +0000 (21:47 +0000)]
Update Korean translation
Changwoo Ryu [Sun, 27 Aug 2017 21:47:41 +0000 (21:47 +0000)]
Update Korean translation
Çağatay Yiğit Şahin [Sun, 27 Aug 2017 20:59:40 +0000 (20:59 +0000)]
Update Turkish translation
Matthias Clasen [Sun, 27 Aug 2017 20:01:24 +0000 (16:01 -0400)]
meson: Make sure ENABLE_NLS is actually defined
Despite the comment, we ended up without ENABLE_NLS.
Matthias Clasen [Sun, 27 Aug 2017 02:13:25 +0000 (22:13 -0400)]
x11: Fix managed dnd
We need to actually trigger the drop from the gdk side.